<?php
class Blog extends CI_Controller{

    public function index(){
        echo "this is my first controller!";
    }

    
    public function blogview()
    {
    $data = array(
    'title' => '来自控制器的数据',
    'heading' => '我是一个大标题',
    'message' => '我是一个段落'
    );

        $this->load->view("myblog.html",$data);
    }
    public function blogmodel()
    {
        $this->load->model('Blogmodel');
        $data=$this->Blogmodel->getData();
        $this->load->view("myblog.html",$data);
    }

    public function signinview()
    {
        $this->load->view("signin.html");
    }
}